package ar.com.hc.utils.hibernate.proxy;

import java.lang.reflect.Proxy;

public class HCHibernateProxyFactory {

	/**
	 * Crea un proxy
	 * 
	 * @param interfaze
	 *            la interface que debe entender el proxy
	 * @return el proxy... castear
	 */
	public static Object createProxy(Class interfaze) {
		return Proxy.newProxyInstance(interfaze.getClassLoader(),
				new Class[] { interfaze }, new HCHibernateInvocationHandler());
	}
}
